<template>
  <div class="statistics-page">
    <h2>统计分析</h2>
    <div class="stats-container">
      <div class="stats-table">
        <table>
          <thead>
            <tr>
              <th>指标</th>
              <th>今日</th>
              <th>本周</th>
              <th>本月</th>
              <th>趋势</th>
            </tr>
          </thead>
          <tbody>
            <tr>
              <td>访问量</td>
              <td>1,234</td>
              <td>8,567</td>
              <td>32,456</td>
              <td><span class="trend-up">↗ +12%</span></td>
            </tr>
            <tr>
              <td>用户数</td>
              <td>567</td>
              <td>3,234</td>
              <td>12,345</td>
              <td><span class="trend-up">↗ +8%</span></td>
            </tr>
            <tr>
              <td>转化率</td>
              <td>15.6%</td>
              <td>14.2%</td>
              <td>13.8%</td>
              <td><span class="trend-down">↘ -2%</span></td>
            </tr>
            <tr>
              <td>收入</td>
              <td>¥12,345</td>
              <td>¥89,234</td>
              <td>¥345,678</td>
              <td><span class="trend-up">↗ +25%</span></td>
            </tr>
          </tbody>
        </table>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  name: 'StatisticsPage'
}
</script>

<style scoped>
.statistics-page {
  height: 100%;
  padding: 40px;
}

.statistics-page h2 {
  font-size: 36px;
  margin-bottom: 40px;
  text-align: center;
}

.stats-container {
  height: calc(100% - 100px);
}

.stats-table {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 15px;
  padding: 30px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  height: 100%;
  overflow: auto;
}

.stats-table table {
  width: 100%;
  border-collapse: collapse;
}

.stats-table th,
.stats-table td {
  padding: 15px;
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.stats-table th {
  font-size: 18px;
  font-weight: bold;
  background: rgba(255, 255, 255, 0.1);
}

.stats-table td {
  font-size: 16px;
}

.stats-table tr:hover {
  background: rgba(255, 255, 255, 0.05);
}

.trend-up {
  color: #67c23a;
}

.trend-down {
  color: #f56c6c;
}

@media (max-width: 768px) {
  .stats-table {
    font-size: 14px;
  }
  
  .stats-table th,
  .stats-table td {
    padding: 10px 5px;
  }
}
</style> 